package wyj;

import java.util.Scanner;

public class 位数 {
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        long i,x,dw,df;
        int z;
        z = 0;
        i = 1;
        x  = in.nextLong();
        while(x>=10){
            x = x/10;
            i = i+1;
            }
            System.out.println("位数是"+i);
        while(x>=0){
            x = x/10;
            dw = x%10;
            z++;
            switch (z){
                case 1:System.out.println("个位是"+dw);break;
                case 2:System.out.println("十位是"+dw);break;
                case 3:System.out.println("百位是"+dw);break;
                case 4:System.out.println("千位是"+dw);break;
                case 5:System.out.println("万位是"+dw);break;
                case 6:System.out.println("十万位是"+dw);break;
                case 7:System.out.println("百万位是"+dw);break;
                case 8:System.out.println("千万位是"+dw);break;
                case 9:System.out.println("亿位是"+dw);break;

            }
        }
        }




    }

